package cn.tedu.service;

import cn.tedu.pojo.Phone;
import org.springframework.stereotype.Component;

@Component
public class PhoneServiceImpl implements PhoneService {

    @Override
    public Phone get() {
        Phone p = new Phone();
        p.setName("华为");
        p.setColor("白色");
        p.setPrice(9999.99);
        return p;
    }

    @Override
    public void add(Phone p) {
        System.out.println(p);
    }
}
